package com.lt;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.core.Logger;
import org.junit.Test;

/**
 * @author lucine
 * @version 1.0 2021/5/24 06:42
 */
public class Log4j2Test {

    /**
     * 定义日志记录器对象
     */
    public static  final Logger LOGGER = (Logger) LogManager.getLogger(Log4j2Test.class);


    @Test
    public  void testQuick(){
        //日志输出
        LOGGER.fatal("fatal");
        //默认级别
        LOGGER.error("error");
        LOGGER.warn("warn");
        LOGGER.info("info");
        LOGGER.debug("debug");
        LOGGER.trace("trace");
    }
}
